package com.example.demo.service

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
class WebServiceProvider {

    @Singleton
    @Provides
    fun userProfileService(retrofit: Retrofit) = retrofit.create(UserProfileService::class.java)

}